package com.wn.date20190807;

/**
 * 饥汉
 * @author song
 *
 */
public class Singleton2
{
	private Singleton2()
	{
		System.out.println("创建饥汉模式");
	}
	public static int num=111;
	private static Singleton2 singleton2=new Singleton2();
	public static Singleton2 getInstance()
	{
		return singleton2;
	}
}
